package com.chilly.controller;

import com.chilly.bean.Account;
import com.chilly.db1.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Chilly Cui on 2020/11/17.
 */
@RestController
@RequestMapping("/trans")
public class TransactionalController {
    @Autowired
    private OrdersService ordersService;

    @RequestMapping("/update")
    public void testQuery() {
        ordersService.accountMoney("xiaohong", "xiaoming");
        System.out.println("---done---");
    }

}
